#include "xmppcore/connectionconfig.h"

namespace yoohoo_xmppcore {

ConnectionConfig::ConnectionConfig(Server server, QString resource, bool requireTls) :
		_server(server), _resource(resource), _requireTls(requireTls) {
}

void ConnectionConfig::setServer(Server server) {
	_server = server;
}

const Server& ConnectionConfig::server() const {
	return _server;
}

void ConnectionConfig::setResource(QString resource) {
	_resource = resource;
}

const QString& ConnectionConfig::resource() const {
	return _resource;
}

bool ConnectionConfig::requireTls() {
	return _requireTls;
}

void ConnectionConfig::setRequireTls(bool requireTls) {
	_requireTls = requireTls;
}

}
